#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../specialized-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy specialized-gateway "
cp ../specialized-gateway/target/specialized-gateway.jar ./specialized/gateway/jar

echo "begin copy specialized-auth "
cp ../specialized-auth/target/specialized-auth.jar ./specialized/auth/jar

echo "begin copy specialized-visual "
cp ../specialized-visual/specialized-monitor/target/specialized-visual-monitor.jar  ./specialized/visual/monitor/jar

echo "begin copy specialized-modules-system "
cp ../specialized-modules/specialized-system/target/specialized-modules-system.jar ./specialized/modules/system/jar

echo "begin copy specialized-modules-file "
cp ../specialized-modules/specialized-file/target/specialized-modules-file.jar ./specialized/modules/file/jar

echo "begin copy specialized-modules-job "
cp ../specialized-modules/specialized-job/target/specialized-modules-job.jar ./specialized/modules/job/jar

echo "begin copy specialized-modules-gen "
cp ../specialized-modules/specialized-gen/target/specialized-modules-gen.jar ./specialized/modules/gen/jar

